package com.dengxiujun.simpletomcat;

import com.dengxiujun.simpletomcat.container.NIOServletContainer;
import com.dengxiujun.simpletomcat.container.ServletContainer;

/**
 * Hello world!
 }
 */
public class App {

    public static void main(String[] args) {
        if (args.length > 0) {
            ServletContainer servletContainer = new ServletContainer(8090);
            servletContainer.start();
        } else {
            NIOServletContainer servletContainer = new NIOServletContainer(8090);
            servletContainer.start();
        }
    }

}